#ifndef __SPINLOCK_H
#define __SPINLOCK_H
#include "types.h"


struct spinlock {
	uint8_t locked;		// is the lock held

	char *name;
};


void init_lock(struct spinlock *lk, char *name);


void acquire_lock(struct spinlock *lk);


void release_lock(struct spinlock *lk);

#endif // __SPINLOCK_H
